﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wicresoft.UnifyShow.Business;
using System.Linq.Expressions;
using NRemedy;
using NRemedy.Linq;
using System.Configuration;

namespace Wicresoft.UnifyShow.BusinessImpl
{
    public class RemedyExample : BasicRemedy, IRemedyExample
    {
        public List<Wicresoft.UnifyShow.Business.RemedyExampleModel> GetListRemedyExampleInt(int i)
        {

            ARSet<RemedyExampleModel> rgf = new ARSet<RemedyExampleModel>(arc, new ARServerDefaultFactory());
            var q = from s in rgf
                    where s.Field == 1
                    select s;
            return q.ToList();
        }

        public List<Wicresoft.UnifyShow.Business.RemedyExampleModel> GetListRemedyExampleInt1(int i)
        {

            ARProxy<RemedyExampleModel> proxy = new ARProxy<RemedyExampleModel>(arc);
            return proxy.GetEntryByQuery("\'Field\'=1").ToList();
        }
    }
}
